package com.citygis.transferdata.api.source2.service;

import com.citygis.transferdata.api.source2.entity.QuartzEntity;
import com.citygis.transferdata.api.source2.entity.QuartzVo;
import com.citygis.transferdata.config.resultBody.ResultBody;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * @ClassName: JobService 
 * @Description: TODO
 * @author: liuzg
 * @Date: 2021/8/31 10:44
 * @Version: v1.0
 */
public interface JobService {

    ResultBody addJob(QuartzEntity quartz);

    List<QuartzEntity> listQuartzEntity(QuartzVo quartz, Integer pageNo, Integer pageSize) throws SchedulerException;

    ResultBody trigger(QuartzVo quartz);

    ResultBody pause(QuartzVo quartz);

    ResultBody resime(QuartzVo quartz);

    ResultBody remove(QuartzVo quartz);
}
